home *** CD-ROM | disk | FTP | other *** search
/ Sports Illustrated for Kids - Awesome Athletes! / Sports Illustrated for Kids - Awesome Athletes!.iso / hf.dir / 00037.ls < prev    next >
Encoding:
Text File  |  1996-04-19  |  1.5 KB  |  52 lines

  1. on mouseDown
  2.   puppetSprite(35, 0)
  3.   puppetSprite(33, 0)
  4.   updateStage()
  5.   dontPassEvent()
  6.   put "exiting caption2"
  7.   go(1)
  8. end
  9.  
  10. on mouseUp
  11.   dontPassEvent()
  12. end
  13.  
  14. on enterFrame
  15.   global mouseUp, gHFstate, ghfathlete, ghfathleteno
  16.   put "entering caption2"
  17.   set the visible of sprite 44 to 1
  18.   set vside to value(gHFstate)
  19.   set the text of cast "captiontext1" to EMPTY
  20.   set the text of cast "captiontext2" to EMPTY
  21.   set the text of cast "captiontext3" to EMPTY
  22.   set vName to "SIDE" & ghfathleteno & vside
  23.   set the itemDelimiter to numToChar(13)
  24.   set vNum to the number of cast vName
  25.   set vlines to the number of lines in field vNum
  26.   repeat with vcounter = 1 to vlines
  27.     set the itemDelimiter to numToChar(13)
  28.     if vcounter < 19 then
  29.       put item vcounter of field vNum & numToChar(13) after field "captiontext1"
  30.       next repeat
  31.     end if
  32.     if (vcounter > 18) and (vcounter < 38) then
  33.       put item vcounter of field vNum & numToChar(13) after field "captiontext2"
  34.       next repeat
  35.     end if
  36.     if (vcounter > 37) and (vcounter < 54) then
  37.       put item vcounter of field vNum & numToChar(13) after field "captiontext3"
  38.     end if
  39.   end repeat
  40.   set the textSize of field "captiontext1" to 10
  41.   set the textSize of field "captiontext2" to 10
  42.   set the textSize of field "captiontext3" to 10
  43.   set vName to "SIDE" & ghfathleteno & "2"
  44.   puppetSprite(35, 1)
  45.   set the locH of sprite 35 to 390
  46.   set the locV of sprite 35 to 76
  47.   set the castNum of sprite 35 to cast "captiontext1"
  48.   updateStage()
  49.   set gHFside to "0"
  50.   pause()
  51. end
  52.